package com.tianshuo.controller;

import org.springframework.stereotype.Component;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @ClassName : ImageServlet
 * @Description : 测试对接Servlet
 * @Author : tianshuo
 * @Date: 2020-10-17 16:35
 */
@Component("/image")
public class ImageServlet extends HttpServlet {

    @Override
    protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {

        System.out.println("ImageServlet");
        resp.getWriter().println("hi ImageServlet");

    }
}

